/**
 * 
 */
package qy.jalgotrade.event;

import java.util.Map;

/**
 * @author c-geo
 *
 */
public interface EventHandler {

	/**
	 * 
	 * @param eventName
	 * @param params
	 * @throws Exception
	 */
	default void preHandle(String eventName, Map<String, Object> params) throws Exception {

	}

	/**
	 * 
	 * @param eventName
	 * @param params
	 * @throws Exception
	 */
	void handle(String eventName, Map<String, Object> params) throws Exception;
}
